<?php
namespace Home\Controller;
use Think\Controller;

class UserController extends FuncController {

    function __construct(){
        parent::__construct();

        $this->mdlUser = D('user');
    }

    public function index(){
        $user['id'] = $this->userid;
        $this->assign('user',$user);
        $this->pDisplay( T('User/index'), true );
    }

    public function upPassw(){
        $rs = $this->mdlUser->upPassw();
        if (!$rs['status']){
            $this->error($rs['msg'], '', 2);
        }else{
            $this->success($rs['msg'], './index.php?m=Home&c=Index&a=index', 2);
        }
    }


}
